package com.common.redis.service;

/**
 * @auther WuJun.Zhang
 * @date 2022/2/18 下午4:52
 */
public interface IRedisOperationService<T> {

    T get(String key);

    void put(String key, T value);

    void put(String key, T value, long expires);

    void delete(String key);

    long set(String key, T value, int expires);

    boolean delete(String key, T value, int expires);

    Long getExpires(String key);
}
